package cameratricks;

import processing.core.PApplet;
import processing.core.PImage;
import processing.video.Capture;
import hypermedia.video.OpenCV;

public class Posterizer implements Renderer {
	Capture capture;
	PApplet p;
	
	public Posterizer(TrickCarousel p) {
		this.capture = p.getCapture();
		this.p = p;
	}

	public void draw(OpenCV opencv) {
		PImage image = opencv.image();
		image.filter(p.POSTERIZE, 3);
		p.image(image, 0, 0);
		// even intervals from 0 to width
	}

}
